<?php
namespace Json\Controller;
use Think\Controller;
class EnrollController extends Controller {
  public function enrolllistJson(){
       
       $use= $this->users=M('enroll')->select();
   echo json_encode($use);
      } 
  
    public function enrollOneJson($id){
       
       $enroll = M('enroll') -> where("enrollid='$id'") -> find();
       echo json_encode($enroll);
      } 

}